package com.example.demo.mapper;

import com.example.demo.pojo.Lifebook;
import com.example.demo.pojo.Module;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
@Mapper
public interface LifebookMapper {
    //生死簿查询
    public List<Lifebook> queryLifeBook(String uuid);
    public Integer queryLifeBook01();

    //生死簿搜索
    public List<Lifebook> queryLifeBook02(Lifebook lifebook);

    //添加生死簿
    void addLifeBook( Lifebook lifebook);
    //删除生死簿
    void deleteLifeBook(String id);

    void updateLifeBook(Lifebook lifebook);

    void updateLifeBookphoto(String photo, String id);


    int queryLifeBookAfterlife01();

    int queryLifeBookAfterlife02();

    // // 将死后的人改为待勾魂状态
    void deathstate01();

    void addmerit(String uuid);

    int delchange(int i);

    int lunhunchange(int i);

    int diyuchange(int i);

    List<Module> getuserlevel();

    Lifebook selectByid(int lifebookId);

    void chusheng();
}
